package com.qq2008.game.mojie.conf;


import org.springframework.context.annotation.Configuration;
import org.thymeleaf.spring5.view.ThymeleafViewResolver;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@Configuration
public class ServerConf {

    // 登录地址
    public static final String HOST_LOGIN = "/login";


    @Resource
    private void configureThymeleafStaticVars(ThymeleafViewResolver viewResolver) {
        if (viewResolver != null) {
            Map<String, Object> vars = new HashMap<>();
            viewResolver.setStaticVariables(vars);
            System.out.println("= 魔界全部设定加载完成");
        }
    }
}
